<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.0.0.042823
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2023/5/18
 * Time: 20:22
 */

namespace app\model;

use think\Model;

class NetworksBusiness extends Model
{

    protected $append = [
        'business_type_id_text'
    ];
    /**
     * 构造器
     * @param $value
     * @param $data
     * @return string
     */
    public function getBusinessTypeIdTextAttr($value, $data)
    {
        $type = [1 => '社区团购', 2 => '快递', 3 => '经销商'];
        return $type[$data['business_type_id']];
    }
}